<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script type="text/javascript" src="../js/jquery-1.7.2.js"></script>
    <script type="text/javascript">
        $(function () {
            $("body").append('<input type="button" value="新按钮1">');
            /*$(":button").click(function () {
                alert("hello");
            });*/
           $("body").on("click",":button",function () {
               alert("hello");
           });
            $("body").append('<input type="button" value="新按钮2">');
        });
    </script>
</head>
<body>
<input type="button" value="点击">
</body>
</html>